﻿using OA.models.Root;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.models
{
    /// <summary>
    /// 组织结构    
    /// </summary>
    public class SysOrg:EntityBase
    {
       
        [Required]
        [StringLength(20)]
        public string Name { get; set; }
        public int ParentId { get; set; }
        [StringLength(20)]
        public string Description { get; set; }

        public ICollection<SysPerson> Person { get; set; }

        public ICollection<SysPosition> Position { get; set; }
    }
}
